.slide {
  width: 0;
  margin: 0;
  padding: 0;
  transition: width 0.8s ease-out;

  .img {
    width: 0;
    height: 100%;
    transition: width 0.8s ease-out;
  }

  .caption {
    display: none;
  }
}

.active {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1em;
  transition: width 0.8s ease-out;

  .img {
    width: 100%;
    height: 100%;
    transition: width 0.8s ease-out;
  }

  .caption {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: inline;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
  }
}
